---
title: os.writeFile()
api: os.writeFile
---

## Description

<Summary/>

## Syntax

``` js
os.writeFile(filename, text)
os.writeFile(filename, data)
```

## Parameters

<Parameters/>

## See Also

* [os](/reference/api/os)
* [os.readFile](/reference/api/os/readFile)
